<template>
  <div>
    this is plan
    <Create @handlePlan="handlePlan" />
  </div>
</template>
<script>
import { defineComponent } from "vue";
import Create from "./Create";
export default defineComponent({
  components: {
     Create
  },
  setup() {
    // 使用function的优点，如果是class的话 this的指向不明确，不方便推断
    const handlePlan = (plan) => {
      console.log(plan);
    }
    return {
      handlePlan
    }
  }
})
</script>